package com.kurumi.service.admin;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.github.pagehelper.PageInfo;
import com.kurumi.bo.PageParam;
import com.kurumi.pojo.admin.AdminUser;

public interface AdminUserServcie {
	
	/**
	 * 根据用户名和密码查询患者信息
	 * @param username
	 * @param password
	 * @return
	 */
	AdminUser getUserByUsernameAndPassword(String username,String password);

	
	/**
	 * 根据用户名查询用户信息
	 * @param username
	 * @return
	 */
	List<AdminUser> getUserByUsername(String username);


	/**
	 * 分页查询用户信息
	 * @param request
	 * @param pageParam
	 * @return
	 */
	PageInfo<AdminUser> geAdminUserPageInfo(HttpServletRequest request, PageParam pageParam);


	/**
	 * 保存或更新用户信息
	 * @param adminUser
	 */
	void saveOrUpdateAdminUser(AdminUser adminUser);


	AdminUser getAdminUserById(Integer adminUserId);


	void delAdminUserById(Integer id);


	AdminUser updateAdminUserPassword(Integer adminUserId, String newPassword);
}
